package de.eeb.common;

import java.util.List;


public class SBGroup {
	private String paymentId;
	private List<String> participants;
	
	public SBGroup() {
		super();
	}

	public SBGroup(String paymentId, List<String> participants) {
		super();
		this.paymentId = paymentId;
		this.participants = participants;
	}

	public String getPaymentId() {
		return paymentId;
	}
	
	public void setPaymentId(String paymentId) {
		this.paymentId = paymentId;
	}
	
	public List<String> getParticipants() {
		return participants;
	}
	
	public void setParticipants(List<String> participants) {
		this.participants = participants;
	}
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((paymentId == null) ? 0 : paymentId.hashCode());
		return result;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		SBGroup other = (SBGroup) obj;
		if (paymentId == null) {
			if (other.paymentId != null)
				return false;
		} else if (!paymentId.equals(other.paymentId))
			return false;
		return true;
	}
}
